home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmCCCCrrrreeeeaaaatttteeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCrrrreeeeaaaatttteeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_C_r_e_a_t_e_O_p_t_i_o_n_M_e_n_u - A RowColumn widget convenience creation
- function
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/RowColumn.h>
-
- Widget XmCreateOptionMenu (ppppaaaarrrreeeennnntttt,,,, nnnnaaaammmmeeee,,,, aaaarrrrgggglllliiiisssstttt,,,, aaaarrrrggggccccoooouuuunnnntttt)
- _W_i_d_g_e_t ppppaaaarrrreeeennnntttt;
- _S_t_r_i_n_g nnnnaaaammmmeeee;
- _A_r_g_L_i_s_t aaaarrrrgggglllliiiisssstttt;
- _C_a_r_d_i_n_a_l aaaarrrrggggccccoooouuuunnnntttt;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _X_m_C_r_e_a_t_e_O_p_t_i_o_n_M_e_n_u creates an instance of a RowColumn widget
- of type _X_m_M_E_N_U__O_P_T_I_O_N and returns the associated widget ID.
-
- It is provided as a convenience function for creating a
- RowColumn widget configured to operate as an OptionMenu and
- is not implemented as a separate widget class.
-
- The OptionMenu widget is a specialized RowColumn manager
- composed of a label, a selection area, and a single Pulldown
- MenuPane. When an application creates an OptionMenu widget,
- it supplies the label string and the Pulldown MenuPane. In
- order to succeed, there must be a valid _X_m_N_s_u_b_M_e_n_u_I_d
- resource set when calling this function. When the
- OptionMenu is created, the Pulldown MenuPane must have been
- created as a child of the OptionMenu's parent and must be
- specified. The LabelGadget and the selection area (a
- CascadeButtonGadget) are created by the OptionMenu.
-
- The OptionMenu's Pulldown MenuPane must not contain any
- ToggleButtons or ToggleButtonGadgets. The results of
- including CascadeButtons or CascadeButtonGadgets in the
- OptionMenu's Pulldown MenuPane are undefined.
-
- An OptionMenu is laid out with the label displayed on one
- side of the widget and the selection area on the other side
- when _X_m_N_o_r_i_e_n_t_a_t_i_o_n is XmHORIZONTAL. If the value is
- XmVERTICAL, the label is above the selection area. The
- selection area has a dual purpose; it displays the label of
- the last item selected from the associated Pulldown
- MenuPane, and it provides the means for posting the Pulldown
- MenuPane.
-
- The OptionMenu typically does not display any 3-D visuals
- around itself or the internal LabelGadget. By default, the
- internal CascadeButtonGadget has a visible 3-D shadow. The
- application may change this by getting the
- CascadeButtonGadget ID using _X_m_O_p_t_i_o_n_B_u_t_t_o_n_G_a_d_g_e_t, and then
- calling _X_t_S_e_t_V_a_l_u_e_s using the standard visual-related
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmCCCCrrrreeeeaaaatttteeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCrrrreeeeaaaatttteeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX))))
-
-
-
- resources.
-
- The Pulldown MenuPane is posted by moving the mouse pointer
- over the selection area and pressing a mouse button defined
- by OptionMenu's RowColumn parent. The Pulldown MenuPane is
- posted and positioned so that the last selected item is
- directly over the selection area. The mouse is then used to
- arm the desired menu item. When the mouse button is
- released, the armed menu item is selected and the label
- within the selection area is changed to match that of the
- selected item. By default, _B_S_e_l_e_c_t is used to interact with
- an OptionMenu. The default can be changed via the RowColumn
- resource _X_m_N_m_e_n_u_P_o_s_t.
-
- The OptionMenu also operates by using the keyboard interface
- mechanism. If the application has established a mnemonic
- with the OptionMenu, typing Alt with the mnemonic causes the
- Pulldown MenuPane to be posted with traversal enabled. The
- standard traversal keys can then be used to move within the
- MenuPane. Selection can occur as the result of pressing the
- Return key or typing a mnemonic or accelerator for one of
- the menu items.
-
- An application may use the _X_m_N_m_e_n_u_H_i_s_t_o_r_y resource to
- indicate which item in the Pulldown MenuPane should be
- treated as the current choice and have its label displayed
- in the selection area. By default, the first item in the
- Pulldown MenuPane is used.
-
- ppppaaaarrrreeeennnntttt
- Specifies the parent widget ID
-
- nnnnaaaammmmeeee Specifies the name of the created widget
-
- aaaarrrrgggglllliiiisssstttt
- Specifies the argument list
-
- aaaarrrrggggccccoooouuuunnnntttt
- Specifies the number of attribute/value pairs in the
- argument list (aaaarrrrgggglllliiiisssstttt)
-
- The user can specify resources in a resource file for the
- automatically created widgets and gadgets of an OptionMenu.
- The following list identifies the names of these widgets (or
- gadgets) and the associated OptionMenu areas.
-
- +o
-
- +o Option Menu Label Gadget - "OptionLabel"
-
- +o Option Menu Cascade Button - "OptionButton"
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmCCCCrrrreeeeaaaatttteeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCrrrreeeeaaaatttteeeeOOOOppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333XXXX))))
-
-
-
- For a complete definition of RowColumn and its associated
- resources, see _X_m_R_o_w_C_o_l_u_m_n(_3_X).
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- Returns the RowColumn widget ID.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _X_m_C_a_s_c_a_d_e_B_u_t_t_o_n_G_a_d_g_e_t(_3_X), _X_m_C_r_e_a_t_e_P_u_l_l_d_o_w_n_M_e_n_u(_3_X),
- _X_m_C_r_e_a_t_e_S_i_m_p_l_e_O_p_t_i_o_n_M_e_n_u(_3_X), _X_m_L_a_b_e_l_G_a_d_g_e_t(_3_X),
- _X_m_O_p_t_i_o_n_B_u_t_t_o_n_G_a_d_g_e_t(_3_X), _X_m_O_p_t_i_o_n_L_a_b_e_l_G_a_d_g_e_t(_3_X),
- _X_m_R_o_w_C_o_l_u_m_n(_3_X), and _X_m_V_a_C_r_e_a_t_e_S_i_m_p_l_e_O_p_t_i_o_n_M_e_n_u(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-